export interface ObjectResponse<T> {
  code: number;
  message: string;
  data: T;
}

export interface UserInfo {
  name: string;
  avatar: string;
  userid: string;
  userType: 'admin' | 'user';
}

export type UserInfoResp = ObjectResponse<UserInfo>;


export interface LoginParams {
  username: string;
  password: string;
}

export interface LoginResult {
  success: boolean;
  message: string;
  data?: any;
  userType?: 'user' | 'admin' | 'guest';
}
